Permalink
Browse files

Merge pull request #93 from Fanamurov/analysis-q2dwAB

Apply fixes from StyleCI
  • Loading branch information...
Fanamurov committed Apr 3, 2018
2 parents 89f4f77 + f157629 commit a8be09a8ab3c2b04ba88a4d4bbc2f7cede1252ab
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/Helpers/FormBuilder/FBElement.php
  2. +2 −2 src/Plugins/ComponentPlugin.php
@@ -257,7 +257,7 @@ public function setFillable()
}
/**
* Сделать поле видимым при выводе списков материалов админки при мобильных
* Сделать поле видимым при выводе списков материалов админки при мобильных.
* @return $this
*/
public function setMobileAdminVisible()
@@ -35,10 +35,10 @@ public function attach($event)
*/
protected function attachSeo($event)
{
if($event->model->getTable() !== 'seo' && (! empty($event->request->get('seo_title')) ||
if ($event->model->getTable() !== 'seo' && (! empty($event->request->get('seo_title')) ||
! empty($event->request->get('seo_description')) || ! empty($event->request->get('seo_seo_keywords')))) {
/** @var Seo $seo */
if($seo = LarrockAdminSeo::getModel()->whereSeoIdConnect($event->model->id)->whereSeoTypeConnect($event->component->name)->first()) {
if ($seo = LarrockAdminSeo::getModel()->whereSeoIdConnect($event->model->id)->whereSeoTypeConnect($event->component->name)->first()) {
$message = 'SEO обновлено';
$seo->seo_id_connect = $event->model->id;
$seo->seo_type_connect = $event->component->name;

0 comments on commit a8be09a

Please sign in to comment.