Browse Source

Merge branch 'dev'

master
Guillaume Bourgeois 5 years ago
parent
commit
9f20b26c4d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      producer/views/site/index.php

+ 1
- 1
producer/views/site/index.php View File

@@ -115,7 +115,7 @@ $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ;
[
'attribute' => 'weight',
'value' => function($model) {
if(strlen($model->weight)) {
if($model->unit == 'piece' && strlen($model->weight)) {
return $model->weight.' g' ;
}
return '' ;

Loading…
Cancel
Save