I give an exemple, file Core/Site/Admin/Application/Customers/page/scetion_personnal.php
<p><label for="status"><?php echo OSCOM::getDef('field_status'); ?></label><?php echo HTML::checkboxField('status', null, ($new_customer ? true : ($OSCOM_ObjectInfo->get('customers_status') == '1'))); ?></p>
with this code when the 'customers_status' = 0 the customer line is red in the main table but when you clic to edit the status checkbox is still 'on'.
I think this code should be better :
<p><label for="status"><?php echo OSCOM::getDef('field_status'); ?></label><?php echo HTML::checkboxField('status', null, ($new_customer ? true : ($OSCOM_ObjectInfo->get('customers_status') == '1' ? true : null))); ?></p>
Am I true ?
Edited by Foayiid, 13 March 2012 - 07:48 PM.









