2012-02-11, 06:06:42
BUG REPORT
Issue:
Newly created items have no promoted value.
In the items "view all" page they show as promoted.
HOWEVER Clicking [P] promotes it instead of unpromotes it.
Therefore, Null promote, shows as promoted in view all.
But not in the toggle logic.
Is promoted null true or false ?
Expected:
When i click [P] and its black, it should toggle to gray and say unpromoted.
Instead it says promoted on newly added records.
Reproduce:
Possible Cause:
oh and could you possibly replace the
echo '<font color="#333333">P</font>';
with a span class so we can style those ?
font tags are deprecated.
Issue:
Newly created items have no promoted value.
In the items "view all" page they show as promoted.
HOWEVER Clicking [P] promotes it instead of unpromotes it.
Therefore, Null promote, shows as promoted in view all.
But not in the toggle logic.
Is promoted null true or false ?
Expected:
When i click [P] and its black, it should toggle to gray and say unpromoted.
Instead it says promoted on newly added records.
Reproduce:
- Add new record save
- Goto view all, click promote
- Observe that it doesnt toggle off, and instead promotes.
Possible Cause:
Code:
imclass.php
conflict with switchitems() and showitemsadmin() logic
if (!isset($data->promo) || $data->promo == false)
if (!isset($data->promo) || $data->promo == true)
oh and could you possibly replace the
echo '<font color="#333333">P</font>';
with a span class so we can style those ?
font tags are deprecated.