mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-12 16:26:07 -06:00
fixed configuration sort order
This commit is contained in:
parent
a81c5d5abc
commit
bef50883ca
@ -50,7 +50,10 @@ class OptionConfigurationRepository extends EntryRepository implements OptionCon
|
||||
$adv = $this->advRepository->find($ad_id);
|
||||
$configurations = array();
|
||||
|
||||
$product_configurations = $this->model->where('stock', '>', '0')->where('parent_adv_id', $ad_id)->get();
|
||||
$product_configurations = $this->model->where('stock', '>', '0')
|
||||
->where('parent_adv_id', $ad_id)
|
||||
->orderBy('created_at', 'ASC')
|
||||
->get();
|
||||
|
||||
foreach ($product_configurations as $product_configuration) {
|
||||
$configurations_item = json_decode($product_configuration->option_json, true);
|
||||
|
||||
@ -93,16 +93,20 @@
|
||||
"symfony/dom-crawler": "3.1.*",
|
||||
"anomaly/installer-module": "~2.3.0"
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"repositories": {
|
||||
"0": {
|
||||
"type": "composer",
|
||||
"url": "https://packages.pyrocms.com"
|
||||
},
|
||||
{
|
||||
"1": {
|
||||
"type": "composer",
|
||||
"url": "https://community.pyrocms.com"
|
||||
},
|
||||
"repo-name": {
|
||||
"type": "composer",
|
||||
"url": "https://repo.openclassify.com"
|
||||
}
|
||||
],
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"database"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user