mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -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);
|
$adv = $this->advRepository->find($ad_id);
|
||||||
$configurations = array();
|
$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) {
|
foreach ($product_configurations as $product_configuration) {
|
||||||
$configurations_item = json_decode($product_configuration->option_json, true);
|
$configurations_item = json_decode($product_configuration->option_json, true);
|
||||||
|
|||||||
@ -93,16 +93,20 @@
|
|||||||
"symfony/dom-crawler": "3.1.*",
|
"symfony/dom-crawler": "3.1.*",
|
||||||
"anomaly/installer-module": "~2.3.0"
|
"anomaly/installer-module": "~2.3.0"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": {
|
||||||
{
|
"0": {
|
||||||
"type": "composer",
|
"type": "composer",
|
||||||
"url": "https://packages.pyrocms.com"
|
"url": "https://packages.pyrocms.com"
|
||||||
},
|
},
|
||||||
{
|
"1": {
|
||||||
"type": "composer",
|
"type": "composer",
|
||||||
"url": "https://community.pyrocms.com"
|
"url": "https://community.pyrocms.com"
|
||||||
|
},
|
||||||
|
"repo-name": {
|
||||||
|
"type": "composer",
|
||||||
|
"url": "https://repo.openclassify.com"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"database"
|
"database"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user