Forums: [SOLVED] multiselect - Forums

Jump to content

Page 1 of 1

[SOLVED] multiselect Error on For Each

#1 User is offline   Steven Thefaine 

  • Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 07-July 11

Posted 29 July 2013 - 05:44 PM

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
0

#2 User is offline   Steven Thefaine 

  • Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 07-July 11

Posted 31 July 2013 - 12:10 PM

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

#3 User is offline   ragheb 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 06-November 13

Posted 07 November 2013 - 06:39 PM

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.
0

#4 User is offline   Steven Thefaine 

  • Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 07-July 11

Posted 05 December 2013 - 07:25 PM

View Postragheb, on 07 November 2013 - 01:39 PM, said:

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.

0

Page 1 of 1


Fast Reply