Index: branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php =================================================================== diff -u -r7035 -r7037 --- branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php (.../dblist.php) (revision 7035) +++ branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php (.../dblist.php) (revision 7037) @@ -627,9 +627,32 @@ function GetDBField($name) { $row =& $this->getCurrentRecord(); + return $row[$name]; } + /** + * Returns ID of currently processed record + * + * @return int + * @access public + */ + function GetID() + { + return $this->Queried ? $this->GetDBField($this->IDField) : null; + } + + /** + * Allows kDBTagProcessor.SectionTitle to detect if it's editing or new item creation + * + * @return bool + */ + function IsNewItem() + { + // no such thing as NewItem for lists :) + return false; + } + function HasField($name) { $row =& $this->getCurrentRecord(); Index: branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r7036 -r7037 --- branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 7036) +++ branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 7037) @@ -755,8 +755,10 @@ function PredefinedSearchOptions($params) { $object =& $this->getObject($params); + /* @var $object kDBList */ + $field = $params['field']; - $saved_value = $object->GetDBField($field); + $saved_value = $object->Queried ? $object->GetDBField($field) : null; $object->SetDBField($field, $this->SearchField($params)); $view_name = $this->Application->RecallVar($this->getPrefixSpecial().'_current_view');