Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  FIXED: Multiselect problem

phpMyEdit General     FIXED: Multiselect problem
Odoslať novú tému   Odpovedať na tému    
 
myksa     Založený: 16.10.2007   Príspevky: 14  
Príspevok Zaslal: 2008-01-11 13:42
Návrat hore  Odpovedať s citátom     

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


Naposledy upravil myksa dňa 2008-01-14 08:16, celkom upravené 1 krát

 
kendor     Založený: 02.01.2008   Príspevky: 6  
Príspevok Zaslal: 2008-01-13 17:29
Návrat hore  Odpovedať s citátom     

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

original: (something like this...)
Kód:

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


replace with:
Kód:

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     Založený: 16.10.2007   Príspevky: 14  
Príspevok Zaslal: 2008-01-14 08:13
Návrat hore  Odpovedať s citátom     

Thanks, that works!

 
t22harris     Založený: 19.03.2009   Príspevky: 15  
Príspevok Zaslal: 2009-03-19 21:41
Návrat hore  Odpovedať s citátom     

Thanks, I had the same issue.

 
texasnerd     Založený: 09.06.2009   Príspevky: 2  
Príspevok Zaslal: 2009-06-09 21:36
Návrat hore  Odpovedať s citátom     

Thank you for your solution.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov