minor fixes
This commit is contained in:
parent
cab9bf88c4
commit
49a3056bc8
|
@ -64,6 +64,8 @@
|
|||
.record_fields_tabs_wrapper .tab-content .dd ul.fields-images li a img {
|
||||
display: block;
|
||||
border: none;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 479px) {
|
||||
|
|
|
@ -75,7 +75,7 @@ class Values extends Dash\Models\Model {
|
|||
}
|
||||
|
||||
//if (empty($content)) $content = null;
|
||||
if (empty($content)) continue;
|
||||
if (empty($content) && $field->field_type != 'checkbox') continue;
|
||||
|
||||
$valueObj = new \Fields\Models\Value();
|
||||
$valueObj->record_id = $record->id;
|
||||
|
|
|
@ -273,6 +273,7 @@ class Category extends Zira\Page {
|
|||
->where('category_id', '=', $category_id)
|
||||
->and_where('language', '=', Zira\Locale::getLanguage())
|
||||
->and_where('name', '=', $record_name)
|
||||
->and_where('published', '=', Zira\Models\Record::STATUS_PUBLISHED)
|
||||
->get(0)
|
||||
;
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ class Index extends Zira\Page {
|
|||
->where('category_id', '=', Zira\Category::ROOT_CATEGORY_ID)
|
||||
->and_where('language', '=', Zira\Locale::getLanguage())
|
||||
->and_where('name', '=', $record_name)
|
||||
->and_where('published', '=', Zira\Models\Record::STATUS_PUBLISHED)
|
||||
->get(0)
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue