Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  FIXED: Multiselect problem

phpMyEdit General     FIXED: Multiselect problem
Post new topic   Reply to topic    
 
myksa     Joined: 16 Oct 2007   Posts: 14  
Post Posted: 2008-01-11 13:42
Back to top  Reply with quote     

Hello

I set one field to multiselect type. Adding, viewing and filtering works fine, but when I want to update/copy record, the following warning displays:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/vrtrip/ftp/baza/phpMyEdit.class.php on line 1545

and nothing in the list is selected.


It looks like in add mode PHPME implodes selected fields to string "value1, value2, ...", but doesn't decode it in copy/update mode.
It's a bug or something?

What should I do to get it work?

Myksa


Last edited by myksa on 2008-01-14 08:16, edited 1 time in total

 
kendor     Joined: 02 Jan 2008   Posts: 6  
Post Posted: 2008-01-13 17:29
Back to top  Reply with quote     

this is a bug:
you can fix it by fixing the typing error near line 1539:
in function htmlSelect

original: (something like this...)
Code:

foreach($selected as $val) $selecte2[]=(string)$val;
   $selected = $selected2;


replace with:
Code:

foreach($selected as $val) $selected2[]=(string)$val;
   $selected = $selected2;

i had the same problem.

or just use the version from the cvs - its fixed there...

 
myksa     Joined: 16 Oct 2007   Posts: 14  
Post Posted: 2008-01-14 08:13
Back to top  Reply with quote     

Thanks, that works!

 
t22harris     Joined: 19 Mar 2009   Posts: 15  
Post Posted: 2009-03-19 21:41
Back to top  Reply with quote     

Thanks, I had the same issue.

 
texasnerd     Joined: 09 Jun 2009   Posts: 2  
Post Posted: 2009-06-09 21:36
Back to top  Reply with quote     

Thank you for your solution.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy