This topic is locked
[SOLVED]

 multiselect

7/29/2013 1:44:05 PM
Multiselect plugin support forum
S
sthefaine author

I have added the plugin and all works fine accept in one scenario can you help me do a work around for this. If I bring up an edit form I get the below error message :
Error type 2

Error description Invalid argument supplied for foreach()

URL Test/Order_Details_edit.php?editid1=111112584

Error file /Test/classes/controls/EditMultiselect.php

Error line 123

SQL query SELECT DISTINCT Features_Id,Phone_Number FROM Line_Orders WHERE Account_Order_Id=4430 ORDER BY Phone_Number
The error occurs because not phone # was entered in for this order so the selectbox is not populated with any numbers the Account_Order_Id is a session variable so the list changes as they edit different orders. What can I do to get around this error besides putting a blank record in. Thanks Steve

S
sthefaine author 7/31/2013

Solved issue by adding code to EditMultiselect.php to create multiselect only if data exist.

R
ragheb 11/7/2013

Hi Steve,
Can you please share the code you added to correct this situation as I am facing same situation and need your help to correct this problem.

S
sthefaine author 12/5/2013



Hi Steve,
Can you please share the code you added to correct this situation as I am facing same situation and need your help to correct this problem.