6.0.0-beta1
7/7/25

[#8050] options error - wrong selected item name (app=imp&group=server)
Summary options error - wrong selected item name (app=imp&group=server)
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester horde (at) smartsector (dot) hu
Created 03/05/2009 (5968 days ago)
Due
Updated 01/13/2010 (5654 days ago)
Assigned 03/09/2009 (5964 days ago)
Resolved 03/10/2009 (5963 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/10/2009 06:37:27 PM Michael Slusarz Comment #7
State ⇒ Resolved
Reply to this comment
Weird - this didn't affect me at all even though I see the same 
errors.  The errors have been fixed.
03/10/2009 06:15:49 PM horde (at) smartsector (dot) hu Comment #6 Reply to this comment
I find the same effect in :

Options / Deleting and Moving Messages / Trash folder: select.


03/10/2009 06:09:56 PM horde (at) smartsector (dot) hu Comment #5 Reply to this comment
I find something in the rendered HTML source code.

It's not visable in first view becaseu it's in a <select> tag so 
browser do not render it out.



<select id="drafts" name="drafts" onchange="newDraftsFolderName();">

  <option value="%nofolder">None</option>

  <br />

<b>Warning</b>:  Missing argument 2 for IMP::folderPref(), called in 
/usr/share/horde/imp/templates/prefs/draftsselect.inc on line 24 and 
defined in <b>/usr/share/horde/imp/lib/IMP.php</b> on line 
<b>977</b><br />



<br />

<b>Notice</b>:  Undefined variable: append in 
<b>/usr/share/horde/imp/lib/IMP.php</b> on line <b>982</b><br />

<br />

<b>Notice</b>:  Undefined variable: append in 
<b>/usr/share/horde/imp/lib/IMP.php</b> on line <b>992</b><br />

<br />



<b>Notice</b>:  Undefined variable: filter in 
<b>/usr/share/horde/imp/lib/IMP.php</b> on line <b>253</b><br />

<br />

<b>Warning</b>:  array_flip() [<a 
href='function.array-flip'>function.array-flip</a>]: The argument 
should be an array in <b>/usr/share/horde/imp/lib/IMP.php</b> on line 
<b>253</b><br />



<option value="">Create a new drafts folder</option>



Nearly the same error in all 3 select box. I can copy all of them here 
if neccessary for fix it.
still all select box on "None" as default when i choose Server and
Folder Information in options.
:(
Fixed selection of drafts folder.  I could not reproduce any problems
on either Trash or Spam.
03/10/2009 06:02:51 PM horde (at) smartsector (dot) hu Comment #4 Reply to this comment
still all select box on "None" as default when i choose Server and 
Folder Information in options.

:(
Fixed selection of drafts folder.  I could not reproduce any problems
on either Trash or Spam.
03/09/2009 09:11:35 PM Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment
Fixed selection of drafts folder.  I could not reproduce any problems 
on either Trash or Spam.
03/07/2009 10:58:00 AM Jan Schneider Comment #2
Assigned to Michael Slusarz
State ⇒ Assigned
Reply to this comment
Confirmed
03/05/2009 11:26:10 PM horde (at) smartsector (dot) hu Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ options error - wrong selected item name (app=imp&group=server)
Type ⇒ Bug
Reply to this comment
i found something in the imp oprions.

when i set up the folders it's work correctly(save it as well and 
everything works fine), but when i come back all folder selects are on 
"none".



i debug a little and find some error in the nameing:

imp/lib/IMP.php in line 259:

$sel = ($mbox['val'] && !empty($options['selected']) && ($mbox['val'] 
=== $options['selected'])) ? ' selected="selected"' : '';



this line do not set up the selected item becasue:

$mbox['val']=INBOX.trash

$options['selected']=trash

Saved Queries