[Tickets #5144] Adding contacts to a new list fails

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Mar 21 12:31:13 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5144
-----------------------------------------------------------------------
 Ticket             | 5144
 Created By         | info at wanner-it.de
 Summary            | Adding contacts to a new list fails
 Queue              | Turba
 Version            | 2.1.4
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


info at wanner-it.de (2007-03-21 05:31) wrote:

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.



More information about the bugs mailing list