Merge pull request #1162 from openclassify/dia

#4418 [translation] Instruction is wrong
This commit is contained in:
spektra2147 2021-09-07 14:48:19 +03:00 committed by GitHub
commit cc9f6c343b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 4 deletions

View File

@ -16,8 +16,4 @@
{% endfor %}
</div>
</div>
<br>
<span class="font-weight-light small text-black-50 {{ not setting_value('visiosoft.module.advs::show_input_flag') ? 'd-none' }}">
***{{ trans('visiosoft.module.advs::field.select_lang_ads') }}
</span>
{% endif %}

View File

@ -555,4 +555,11 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
->where('slug', '!=', '')
->orderBy('publish_at', 'desc');
}
public function findByCFJSON($key, $value)
{
return $this->currentAds()
->whereJsonContains('cf_json', [$key => $value])
->first();
}
}

View File

@ -56,4 +56,6 @@ interface AdvRepositoryInterface extends EntryRepositoryInterface
public function getUserAds($userID = null, $status = "approved");
public function currentAds();
public function findByCFJSON($key, $value);
}

View File

@ -17,6 +17,8 @@ return [
'name' => env('APP_NAME', 'My Application'),
'application_domain' => env('APPLICATION_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| Application Environment