6.0.0-beta1
9/19/25

[#5068] Adding bookmarks with new folder doesn't work in HEAD
Summary Adding bookmarks with new folder doesn't work in HEAD
Queue Trean
Type Bug
State Resolved
Priority 3. High
Owners
Requester panni (at) fragstore (dot) net
Created 03/06/2007 (6772 days ago)
Due
Updated 03/06/2007 (6772 days ago)
Assigned
Resolved 03/06/2007 (6772 days ago)
Github Issue Link
Github Pull Request
Milestone HEAD
Patch No

History
03/06/2007 10:28:13 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS, thanks!
03/06/2007 09:01:27 AM panni (at) fragstore (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Adding bookmarks with new folder doesn't work in HEAD
Queue ⇒ Trean
Reply to this comment
Fatal error: Call to undefined method PEAR_Error::addBookmark() in 
/var/www/horde/trean/add.php on line 57



Results from the javascript addBookmark() in add/add.inc, which refers 
to the form SELECT field "selected_folder", which has obviously been 
renamed to "f".



--- /home/horde/trean/templates/add/add.inc     2007-02-05 
11:35:25.000000000 +0100

+++ trean/templates/add/add.inc 2007-03-06 09:54:58.000000000 +0100

@@ -1,13 +1,13 @@

  <!--a75c305b1c0a6022--><script type="text/javascript">

  function addBookmark() {

-    if (document.bookmark.selected_folder.value == '*new*') {

+    if (document.bookmark.f.value == '*new*') {

          var newFolder = window.prompt('<?php echo 
addslashes(_("Please enter a name for the new folder:")) ?>\n', '');

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

              document.bookmark.newFolder.value = newFolder;

              document.bookmark.submit();

          }

      } else {

-        if (document.bookmark.selected_folder.value == '') {

+        if (document.bookmark.f.value == '') {

              window.alert('<?php echo addslashes(_("You must select a 
target folder first")) ?>');

          } else {

              document.bookmark.submit();


Saved Queries