minor fixes

This commit is contained in:
Dro1d.Ru 2018-04-21 15:22:27 +05:00
parent cab9bf88c4
commit 49a3056bc8
4 changed files with 5 additions and 1 deletions

View file

@ -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) {

View file

@ -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;

View file

@ -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)
;

View file

@ -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)
;