Public bug reported:

Old code use custome_output and new code use custom_ouput to check if
html code must be added. When upgrader was run on old code it add new
column custom_ouput but old was still there so when you create new
widget with custom output in old Admin Panel it will set custome_ouput
to 0 and custom_ouput to what ever you set.

And code for check backward compatibility was this:

if (isset($widget->custome_output)) 
    $widget->custom_output = $widget->custome_output;

so for all new widget you will always have custome_output and it was
always copy from old to new even if new is present.

** Affects: aikiframework
     Importance: High
     Assignee: Jakub Jankiewicz (jcubic)
         Status: Fix Committed

** Changed in: aikiframework
    Milestone: None => 0.9.1

** Changed in: aikiframework
     Assignee: (unassigned) => Jakub Jankiewicz (jcubic)

** Changed in: aikiframework
   Importance: Undecided => High

** Changed in: aikiframework
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/995908

Title:
  You can use custom ouput in old admin panel when upgrader from old
  code

Status in Aiki Framework:
  Fix Committed

Bug description:
  Old code use custome_output and new code use custom_ouput to check if
  html code must be added. When upgrader was run on old code it add new
  column custom_ouput but old was still there so when you create new
  widget with custom output in old Admin Panel it will set custome_ouput
  to 0 and custom_ouput to what ever you set.

  And code for check backward compatibility was this:

  if (isset($widget->custome_output)) 
      $widget->custom_output = $widget->custome_output;

  so for all new widget you will always have custome_output and it was
  always copy from old to new even if new is present.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/995908/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help   : https://help.launchpad.net/ListHelp

Reply via email to