6.0.0-alpha14
7/1/25

[#5144] Adding contacts to a new list fails
Summary Adding contacts to a new list fails
Queue Turba
Queue Version 2.1.4
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester info (at) wanner-it (dot) de
Created 03/21/2007 (6677 days ago)
Due
Updated 04/11/2007 (6656 days ago)
Assigned
Resolved 03/21/2007 (6677 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/11/2007 03:52:46 PM jerome (at) catrouillet (dot) net Comment #4 Reply to this comment
I had exactly the same question and after 1 hour search, I found that 
the modified file is /horde/turba/templates/browse/javascript.inc



The correct file is at this page :



http://cvs.horde.org/co.php?r=1.20&f=turba%2Ftemplates%2Fbrowse%2Fjavascript.inc



Jerome.



  > Hi!!
Could you please make a patch? Or give more detailed instructions on
what file or files modify to get this solved?

Thanks.

Ivan
04/09/2007 08:52:01 PM ivan (dot) zilic (at) mainnetworks (dot) net Comment #3 Reply to this comment
Hi!!



Could you please make a patch? Or give more detailed instructions on 
what file or files modify to get this solved?



Thanks.



Ivan
03/21/2007 07:12:05 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS and for 2.2 (there will likely not be a 2.1.5) by 
changing "source" on that line to "targetAddressbook".
03/21/2007 12:31:12 PM info (at) wanner-it (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Adding contacts to a new list fails
Queue ⇒ Turba
State ⇒ Unconfirmed
Reply to this comment
I try to add a contact to a new list. Turba asks me for the name of 
that new list and after entering the name and submitting the window 
nothing happens.

In my error console (Firefox 2.0.0.3) the following error occurs:



document.contacts.source has no properties



This ist the function where it fails:

function Add(select)

{

     if (!AnySelected()) {

         window.alert('Sie müssen erst mindestens einen Eintrag auswählen.');

         return false;

     }



     key = select[select.selectedIndex].value;

     if (key == '') {

         alert('Sie müssen erst eine Zielliste angeben.');

         return false;

     }



     if (key.indexOf(':') == -1 || key.lastIndexOf(':') == key.length - 1) {

         var newList = window.prompt('Bitte einen Namen für die neue 
Kontakliste angeben:\n', '');

         if (newList != null && newList != '') {

             if (key.lastIndexOf(':') == key.length - 1) {

                 key = key.substr(0, key.length - 1);

             }

             document.contacts.source.value = key;   
<-----------------------------------

             document.contacts.targetNew.value = 1;

             document.contacts.targetList.value = newList;

         } else {

             return false;

         }

     } else {

         document.contacts.targetList.value = key;

     }



     Submit('add');

}



I upgraded to 2.1.4 some days ago.

Saved Queries