3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

22 commits

Author SHA1 Message Date
Michael Stenta bb11c8364c Update dispatch() argument order for Symfony 5 #704
See https://www.drupal.org/node/3154407
2023-08-03 13:05:35 -04:00
Michael Stenta e7e2b15e4a Add "Speed" to the list of quantity measures #658 2023-03-16 14:52:49 -04:00
Michael Stenta c787d7e256 Remove default_measure configuration from quantity type definitions #612
This was originally added so that the Price quantity type could set its
default measure to "value" all the time. This was back when price
quantities were part of farmOS core. It was then moved to the
farm_ledger contrib module, and is being refactored such that it will no
longer need to make use of this default_measure configuration.
2022-12-02 14:02:24 -05:00
Michael Stenta 1a35a65c66 Consistently provide *_options() helpers for all uses of *_allowed_values(). 2022-02-28 14:20:37 -05:00
Michael Stenta 4cd87c9956 Provide a quantity_measure_options() helper function. 2022-01-17 07:42:00 -05:00
Paul Weidner 7af4618ba1 Issue #3253430 by paul121: Define all callback_allowed_values_function parameters
Accidentally merged the wrong commit earlier.
2021-12-14 09:13:10 -05:00
Paul Weidner 94cd242abd Standardise quantity measure allowed_values_function name. 2021-12-14 06:58:07 -05:00
Paul Weidner d15bdc5e37 Define all callback_allowed_values_function parameters. 2021-12-14 06:58:07 -05:00
paul121 b14e91f195 Fix Uncaught PHP Exception Twig\\Error\\RuntimeError: "The "filter" filter expects an array or "Traversable", got "NULL"."
Initialize the content variable so it exists in quantity.html.twig
when the quantity has no populated fields.
2021-10-21 09:59:02 -07:00
paul121 3a46ccb60b Issue #3239191 by paul121: Change farm_update to ignore simple config 2021-09-27 09:50:10 -04:00
Michael Stenta e36ac7a33f Exclude quantity.settings config from automatic updates. 2021-09-23 09:55:41 -04:00
paul121 c48e380295 Allow quantity types to specify a default measure. 2021-09-17 15:59:27 -04:00
Michael Stenta b7468fdc9b Dispatch a QuantityEvent when on quantity presave and delete. 2021-03-27 14:43:53 -04:00
Michael Stenta 835137d0f3 Only include quantity fields in the template if they are not empty. 2021-03-11 08:40:32 -05:00
paul121 d4037fc0f5 Add field__quantity__field theme hook suggestion. 2021-03-05 14:16:05 -05:00
paul121 d258e05c2e Add theme suggestions for each quantity bundle. 2021-03-05 14:16:05 -05:00
Michael Stenta 6c007a2d11 Add the quantity system of measurement to meta.farm. 2021-02-22 21:02:41 -05:00
Michael Stenta 90fd9621e4 Very basic quantity templating. 2021-02-05 12:49:34 -05:00
Michael Stenta 47e96dacbc Move farm_quantity_log_delete() hook logic to a Log event subscriber. 2021-02-05 12:23:20 -05:00
Michael Stenta ba660170a7 Move quantity field definition into farm_entity, with dependency on farm:quantity. 2021-02-05 12:23:20 -05:00
Michael Stenta 006d890d24 Change quantity field description from question to statement. 2021-02-05 12:23:20 -05:00
Michael Stenta 6681a34dcd Rename farm_quantity to quantity. 2021-02-05 12:23:20 -05:00
Renamed from modules/core/quantity/farm_quantity.module (Browse further)