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

73 commits

Author SHA1 Message Date
Michael Stenta
c0f02dfc0e Update all core_version_requirement to ^10. 2023-10-30 12:07:29 -04:00
Paul Weidner
9b9871c3ba Issue #3394069: Update quantities to use bundle permission granularity 2023-10-27 09:25:45 -04:00
Michael Stenta
109faec636 Validate quantity entities created by create_quantity #721 2023-10-06 14:02:38 -04:00
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
Paul Weidner
5ca5f1a3ab Fix phpcs error that use statements should be sorted alphabetically 2023-06-13 09:53:49 -07:00
Michael Stenta
e7e2b15e4a Add "Speed" to the list of quantity measures #658 2023-03-16 14:52:49 -04:00
Michael Stenta
0b361341e3 Add a plain_text Quantity view mode that strips tags and whitespace. 2022-12-22 19:05:45 -05: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
c7c94b84a4 Mark the CreateQuantity migrate process plugin as @internal. 2022-11-21 13:54:26 -05:00
Michael Stenta
ed7ec99e11 Change CreateQuantity migrate process plugin to handle_multiples to fix issue with migrated material terms. 2022-11-21 13:54:26 -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
83188d52ff Remove field_ui_base_route from quantity entity definition. 2022-01-14 11:04:26 -08: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
Michael Stenta
f00313db03 Move create_quantity migration plugin to quantity module. 2021-09-20 14:13:18 -04:00
paul121
c48e380295 Allow quantity types to specify a default measure. 2021-09-17 15:59:27 -04:00
paul121
94ef94825c Increase weight between quantity base fields. 2021-09-17 15:59:27 -04:00
paul121
b770db6552 Allow quantity fields to be rendered before and after the standard fields. 2021-09-15 15:35:40 -04:00
paul121
f7ce438a40 DeleteMultipleRouteProvider is deprecated. 2021-08-30 12:28:51 -04:00
Michael Stenta
9ae8dbed32 Issue #3224684: Allow managed roles access to entity revisions tab 2021-07-22 10:01:44 -04:00
Michael Stenta
ee080f2e00 Fix "Wrong class casing" warning in PHPStorm. 2021-04-05 10:59:04 -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
Michael Stenta
dae3ccd80c Add Views integration for Quantity Value field, filter, and sort using fraction decimal handlers. 2021-03-11 07:38:15 -05:00
Michael Stenta
3c9087a3d0 The Quantity value field is not required.
This was dependent on https://www.drupal.org/project/fraction/issues/3202832
2021-03-11 07:38:15 -05:00
paul121
06c03f1073 Always render the Quantity type field. 2021-03-09 09:12:05 -08:00
paul121
bdd4e66714 Render the quantity entity in quantity inline entity forms. 2021-03-09 08:58:41 -08:00
paul121
7727048c6f Allow the quantity type label to be viewed without the administer bundle permission.
https://www.drupal.org/project/entity/issues/2943571
2021-03-09 08:23:28 -08:00
Michael Stenta
19b5705f41 Use quantity_base_fields instead of standard_quantity_fields to avoid confusion with standard bundle. 2021-03-08 10:09:22 -05:00
Michael Stenta
85f979a439 Do not include quantity type in default template. 2021-03-08 10:01:42 -05:00
Michael Stenta
8fbf8def75 Remove unimplemented quantity entity type annotations and related unused classes. 2021-03-08 09:42:33 -05:00
paul121
5491b83fb2 Remove devel and standard quantity reference from template. 2021-03-05 14:16:06 -05:00
paul121
d942781100 Render the quantity type label if it is not the standard type. 2021-03-05 14:16:05 -05:00
paul121
65d2348b93 Document that the quantity variable is available in template. 2021-03-05 14:16:05 -05:00
paul121
a5d1e7eeef Only display other quantity field labels if they are not hidden. 2021-03-05 14:16:05 -05:00
paul121
91aef36db3 Do not add clearfix to quantity fields. 2021-03-05 14:16:05 -05:00
paul121
b7caa132c7 Move the quantity label to the bottom of the form. 2021-03-05 14:16:05 -05:00
paul121
c6a2d1daf1 Make the default quantity template compatible with all bundles. 2021-03-05 14:16:05 -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
paul121
fd1496448d Enable bundles on Quantity entities. 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
paul121
f537b4a0bb Use the system of measurement as the map units. 2021-02-22 21:02:41 -05:00
paul121
61626f6dd7 Provide a quantity settings form. 2021-02-22 21:02:41 -05:00
paul121
27bee57307 Create administer quantity permission. 2021-02-22 21:02:41 -05:00