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

39 commits

Author SHA1 Message Date
Michael Stenta 9b1a87dcbe Translate untranslated drupal_set_message() function calls. 2020-04-23 10:46:19 -04:00
Michael Stenta 97119dbd5a Allow filtering to find logs that are not done with farm_log_query(). 2019-06-26 14:27:47 -04:00
Michael Stenta 886de46530 Add functions for getting the list of assets in an area (cloned from group membership functions). 2019-04-01 15:56:53 -04:00
Michael Stenta 7b506bc536 Add query tags in query helper functions. 2019-04-01 15:56:53 -04:00
Michael Stenta 3f17afcf63 Implement hook_restws_field_collection_info() for field collections: Group Memberships, Inventory Adjustments, Animal Tag IDs, Movements, and Quantity Measurements. 2019-03-06 17:35:11 -05:00
Michael Stenta 71a9cd3cd4 Issue #3027067: API can't filter archived assets 2019-01-21 13:19:38 -05:00
Michael Stenta ed67950aa5 Add the ability to filter by log type in farm_log_query() and farm_log_asset_query(). 2018-09-05 14:08:14 -04:00
Michael Stenta 6bc1d6d9e7 Add help text to farm/assets/groups. 2018-08-06 15:23:30 -04:00
Michael Stenta 6b94592e87 Improve auto-generated log names for group membership, inventory, weight, and location. 2018-04-23 16:34:31 -04:00
Michael Stenta 6ac30f5b88 Add a helper function for generating a summary of entity labels for use in a log name. 2018-04-23 16:25:28 -04:00
Michael Stenta 25b4525659 Use new helper function in farm_group_membership_set(). 2018-04-17 14:31:06 -04:00
drupalgin 0e5a226627 Issue #2950316 by drupalgin: Fixed coding standards 2018-04-07 12:40:16 -04:00
Michael Stenta ce20af68b4 Fix PHP warning when saving a new asset with group membership. 2018-03-01 10:41:23 -05:00
Michael Stenta 4c791db2a4 Update farm_group functions to use 'archived' instead of 'active'. 2018-01-31 16:03:48 -05:00
Michael Stenta 3919482f4d Issue #2935314: Make farm_group_circular_membership_validate() more defensive with parameter inputs. 2018-01-10 16:24:57 -05:00
Michael Stenta 3e908ede51 Fix PHP Notice: Undefined index: group in farm_group_asset_form_submit(). 2017-12-31 11:13:11 -05:00
Michael Stenta 96efe03401 Validate that the "Group membership" field in asset edit forms can't create circular memberships. 2017-12-28 14:03:57 -05:00
Michael Stenta da0030f4ee Limit farm_group_members() to active assets by default. 2017-12-16 09:35:57 -05:00
Michael Stenta 29c1eda881 Fix farm_group_members() and farm_group_members_query() so that they only return assets currently in the group. Previously they were loading ALL logs assigning assets to the group, so an asset would appear in the group even if it was moved to a different group. 2017-12-07 17:38:53 -05:00
Michael Stenta 1af21d48b9 Use innerJoin()s where possible. 2017-12-07 17:38:52 -05:00
Michael Stenta dc8e0dd7c9 Return the logs created by helper functions (movements, group, inventory, weight). 2017-11-24 21:00:10 -05:00
Michael Stenta ef6a04614d Use is_numeric() instead of is_int() when checking log timestamps and entity IDs. 2017-11-24 20:59:17 -05:00
Michael Stenta cdf5f7672e Convert group reference to a Field Collection in Activity and Observation logs. 2017-11-24 20:58:33 -05:00
Michael Stenta 11875dd3d4 Add a validation handler for the "Group" VBO action that checks for circular membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 5a2574dabb Create a form helper function for validating against circular memberships. 2017-11-24 20:58:33 -05:00
Michael Stenta 1aa05c49a6 Add an action for assigning assets to groups in bulk. 2017-11-24 20:58:33 -05:00
Michael Stenta 6eb6884345 Put inventory and group membership in the right column with location. 2017-11-24 20:58:33 -05:00
Michael Stenta 627c054105 Add ability to create a new group when adding/editing an asset. 2017-11-24 20:58:33 -05:00
Michael Stenta 5d22d2f0c8 Add a field to asset edit forms for automatically creating a group assignment log. 2017-11-24 20:58:33 -05:00
Michael Stenta a49812f8bc Add a function for generating a group membership assignment log. 2017-11-24 20:58:33 -05:00
Michael Stenta 98f4dc350c Show View of logs with group membership on assets. 2017-11-24 20:58:33 -05:00
Michael Stenta 96c7445aa1 Show an assets current group membership on asset view page. 2017-11-24 20:58:33 -05:00
Michael Stenta 6a684a9a2b Create a function that allows you to get a list of a group's members. 2017-11-24 20:58:33 -05:00
Michael Stenta 1f4e49c504 Show members of a group when viewing a group's page. 2017-11-24 20:58:33 -05:00
Michael Stenta 4e48221726 When a log form with a group reference field is submitted validate that assets are referenced and they don't create a circular membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 0731214b3d Add a function to check for circular group membership. 2017-11-24 20:58:33 -05:00
Michael Stenta e1a47a0691 Add functions for querying the membership of an asset (similar to farm_movement's location code). 2017-11-24 20:58:33 -05:00
Michael Stenta 71a2662eb7 Implement hook_farm_ui_entities() to describe the Group asset type to the Farm UI module. 2017-11-24 20:58:33 -05:00
Michael Stenta 86768afbc3 Initial commit of Farm Group module: provide a basic Group asset type. 2017-11-24 20:58:33 -05:00