Fixed some small issues
authorMarcel Werk <burntime@woltlab.com>
Mon, 16 Jan 2012 18:29:07 +0000 (19:29 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 Jan 2012 18:29:07 +0000 (19:29 +0100)
wcfsetup/install/files/js/WCF.js
wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php

index b3227b4b0e169200c69d0efc20b118ac885dc85e..a6e9e2236c4a560196995535449ff9c2eb386a5f 100644 (file)
@@ -3226,10 +3226,10 @@ WCF.Search.Base = Class.extend({
                var $listItem = $(event.currentTarget);
 
                // notify callback
-               this._callback($listItem.data());
+               var $clearSearchInput = this._callback($listItem.data());
 
                // close list and revert input
-               this._clearList(true);
+               this._clearList($clearSearchInput);
        },
 
        /**
index 85faa1b70e34f27b56ac58bcb2af1eb0d774797b..6a2bb9a27e6a80300a04ad175f2b68fe18b7db77 100644 (file)
@@ -105,11 +105,8 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction {
                                
                                $this->objectIDs[] = $object->$indexName;
                        }
-                       else if (is_int($object)) {
-                               $this->objectIDs[] = $object;
-                       }
                        else {
-                               throw new SystemException('invalid value of parameter objects given');
+                               $this->objectIDs[] = $object;
                        }
                }