Skip to content

Commit

Permalink
Cart meta cast (#895)
Browse files Browse the repository at this point in the history
* Squashed commit of the following:

commit 02c2671
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Fri Feb 10 11:13:49 2023 +0000

    Update lines.blade.php (#849)

commit 0780a1c
Author: wychoong <67364036+wychoong@users.noreply.github.com>
Date:   Fri Feb 10 18:41:36 2023 +0800

    Update CollectionTree.php (#835)

    Co-authored-by: Alec Ritson <hello@itsalec.co.uk>

commit e558799
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Fri Feb 10 09:47:16 2023 +0000

    :beer:

commit 8fd4842
Merge: df6f7f7 51af420
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Fri Feb 10 09:47:03 2023 +0000

    Merge branch '0.2' of github.com:lunarphp/lunar into 0.2

commit df6f7f7
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Fri Feb 10 09:47:00 2023 +0000

    :beer:

commit 51af420
Author: wychoong <67364036+wychoong@users.noreply.github.com>
Date:   Fri Feb 10 17:43:10 2023 +0800

    [0.2] Hotfix - fix pluck on null (#834)

    * fix pluck on null

    * Update AbstractDiscount.php

    ---------

    Co-authored-by: Alec Ritson <hello@itsalec.co.uk>

commit 7b5ce85
Author: wychoong <67364036+wychoong@users.noreply.github.com>
Date:   Fri Feb 10 17:16:50 2023 +0800

    [0.2] Fix/discount by product (#841)

    * fix

    * add test

    * fix discount minSpend precision

    * fix discount condition logic

    * fix

    * fix coupon check

commit 72f8454
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Fri Feb 10 09:16:16 2023 +0000

    Hotfix [0.2] - Wrap customer group in array (#846)

    * Wrap customer group in array

    * Update ProductVariantTest.php

commit b8773d3
Author: Ryan Mitchell <ryan@thoughtcollective.com>
Date:   Wed Feb 8 20:43:09 2023 +0000

    When DB::table() is used make sure connection is passed (#826)

commit 650d9db
Merge: dcd39cc de20aff
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Wed Feb 1 09:57:04 2023 +0000

    Merge branch 'main' into 0.2

commit dcd39cc
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Tue Jan 31 07:29:15 2023 +0000

    :beer:

* Squashed commit of the following:

commit 1a362cc
Author: Ivanka Todorova <1038697+fakeheal@users.noreply.github.com>
Date:   Tue Feb 14 13:25:25 2023 +0200

    Fix validation of attributes of type TranslatedText (#839)

    * fix: validation rules to be applied on elements in `TranslatedText`

    * fix: "reset" the validation rules applied to each sub-field in `TranslatedText`

    * chore: add tests for validating attribute fields (required/optional) and their additional rules

    ---------

    Co-authored-by: Alec Ritson <hello@itsalec.co.uk>

commit 6c1ab08
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Tue Feb 14 10:58:15 2023 +0000

    [0.2] Hotfix - Fix collection name on creation (#852)

    * Squashed commit of the following:

    commit 02c2671
    Author: Alec Ritson <hello@itsalec.co.uk>
    Date:   Fri Feb 10 11:13:49 2023 +0000

        Update lines.blade.php (#849)

    commit 0780a1c
    Author: wychoong <67364036+wychoong@users.noreply.github.com>
    Date:   Fri Feb 10 18:41:36 2023 +0800

        Update CollectionTree.php (#835)

        Co-authored-by: Alec Ritson <hello@itsalec.co.uk>

    commit e558799
    Author: Alec Ritson <hello@itsalec.co.uk>
    Date:   Fri Feb 10 09:47:16 2023 +0000

        :beer:

    commit 8fd4842
    Merge: df6f7f7 51af420
    Author: Alec Ritson <hello@itsalec.co.uk>
    Date:   Fri Feb 10 09:47:03 2023 +0000

        Merge branch '0.2' of github.com:lunarphp/lunar into 0.2

    commit df6f7f7
    Author: Alec Ritson <hello@itsalec.co.uk>
    Date:   Fri Feb 10 09:47:00 2023 +0000

        :beer:

    commit 51af420
    Author: wychoong <67364036+wychoong@users.noreply.github.com>
    Date:   Fri Feb 10 17:43:10 2023 +0800

        [0.2] Hotfix - fix pluck on null (#834)

        * fix pluck on null

        * Update AbstractDiscount.php

        ---------

        Co-authored-by: Alec Ritson <hello@itsalec.co.uk>

    commit 7b5ce85
    Author: wychoong <67364036+wychoong@users.noreply.github.com>
    Date:   Fri Feb 10 17:16:50 2023 +0800

        [0.2] Fix/discount by product (#841)

        * fix

        * add test

        * fix discount minSpend precision

        * fix discount condition logic

        * fix

        * fix coupon check

    commit 72f8454
    Author: Alec Ritson <hello@itsalec.co.uk>
    Date:   Fri Feb 10 09:16:16 2023 +0000

        Hotfix [0.2] - Wrap customer group in array (#846)

        * Wrap customer group in array

        * Update ProductVariantTest.php

    commit b8773d3
    Author: Ryan Mitchell <ryan@thoughtcollective.com>
    Date:   Wed Feb 8 20:43:09 2023 +0000

        When DB::table() is used make sure connection is passed (#826)

    commit 650d9db
    Merge: dcd39cc de20aff
    Author: Alec Ritson <hello@itsalec.co.uk>
    Date:   Wed Feb 1 09:57:04 2023 +0000

        Merge branch 'main' into 0.2

    commit dcd39cc
    Author: Alec Ritson <hello@itsalec.co.uk>
    Date:   Tue Jan 31 07:29:15 2023 +0000

        :beer:

    * Check for attribute type when creating

commit 0942397
Author: Alec Ritson <hello@itsalec.co.uk>
Date:   Tue Feb 14 10:57:37 2023 +0000

    Update HasImages.php (#853)

* Release 0.2-rc2 (#873)

* Update changelogs

* Update CHANGELOG.md

* Allow textarea component maxlength to be overridden (#880)

* Allow textarea component maxlength to be overridden

* Add changelog

* Update Cart.php

---------

Co-authored-by: Alec Ritson <hello@itsalec.co.uk>
Co-authored-by: Ryan Mitchell <ryan@thoughtcollective.com>
  • Loading branch information
3 people authored Mar 24, 2023
1 parent b6a6a8c commit aff3916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Models/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function addLines(iterable $lines)
$this->add(
purchasable: $line['purchasable'],
quantity: $line['quantity'],
meta: $line['meta'] ?? null,
meta: (array) $line['meta'] ?? null,
refresh: false
);
});
Expand Down

0 comments on commit aff3916

Please sign in to comment.