CoreBOSBB
Request: isDuplicate. CRM variable name? - 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: Request: isDuplicate. CRM variable name? (/showthread.php?tid=454)



Request: isDuplicate. CRM variable name? - Guido1982 - 10-09-2016

Since I think this question could also come up for module development in general I thought I'd start a new topic for it, as to not clutter the "PackingSlip" topic with too much info:

I saw this line in EditView.php (taken from the example IssueCards module):

PHP Code:
if (isset ($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { 

Is the "isDuplicate" a CRM default variablename, that is set to the REQUEST array for each entity record that is created as a duplicate? If so, I should not rename it.


RE: Request: isDuplicate. CRM variable name? - joebordes - 10-09-2016

Correct. It is system variable set when you are duplicating a record. You should not manipulate this variable.

I would recommend you also study the native Inventory modules, they are better maintained and have more functionality.


RE: Request: isDuplicate. CRM variable name? - Guido1982 - 10-09-2016

Thanks, I'm in the process of doing that as we speak.