Trouble creating a CBupdate that installs a field - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18) +--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4) +--- Thread: Trouble creating a CBupdate that installs a field (/showthread.php?tid=707) |
Trouble creating a CBupdate that installs a field - Guido1982 - 08-03-2017 I have created a cbUpdate that installs a field. This all works fine, but I see a problem when trying to test reversing the update. The update is in 'pending' status. Not sure why, but I can't try the 'undoChange' now either. Not a serious problem, since the field installs correctly, but still, I'd like to know what I'm doing wrong here. Here's the code: PHP Code: class installSoFieldInPo extends cbupdaterWorker { RE: Trouble creating a CBupdate that installs a field - omarllorens - 08-03-2017 Hi. You forget to add $this->markApplied(); after $field->setRelatedModules(array('SalesOrder')); This function change the status to Executed. RE: Trouble creating a CBupdate that installs a field - Guido1982 - 08-03-2017 Aaah, cool. Thanks! |