mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-08 02:50:59 +00:00
check if attr definition exists when building a search query from an url
This commit is contained in:
parent
30880c0539
commit
593c6f5f95
|
@ -1822,8 +1822,8 @@ class SeedDMS_Search { /* {{{ */
|
||||||
$attributes = array();
|
$attributes = array();
|
||||||
|
|
||||||
foreach($attributes as $attrdefid=>$attribute) {
|
foreach($attributes as $attrdefid=>$attribute) {
|
||||||
$attrdef = $this->dms->getAttributeDefinition($attrdefid);
|
|
||||||
if($attribute) {
|
if($attribute) {
|
||||||
|
if($attrdef = $this->dms->getAttributeDefinition($attrdefid)) {
|
||||||
if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_date) {
|
if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_date) {
|
||||||
if(is_array($attribute)) {
|
if(is_array($attribute)) {
|
||||||
if(!empty($attributes[$attrdefid]['from']))
|
if(!empty($attributes[$attrdefid]['from']))
|
||||||
|
@ -1836,6 +1836,7 @@ class SeedDMS_Search { /* {{{ */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->searchparams['attributes'] = $attributes;
|
$this->searchparams['attributes'] = $attributes;
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user