Michael Stenta
ad4725c12f
Change all relevant links from farmOS.org to v1.farmOS.org.
2021-12-21 19:18:39 -05:00
beagaliana
e365c07304
Issue #3215846 by beagaliana: Make some strings translatable
...
Closes #3215846 . t() function was missing in some strings
2021-06-24 10:33:50 -04:00
taradiddles
2b64bc8e7c
Add optional group membership selection to quick birth form #424
2021-05-19 08:08:12 -04:00
Michael Stenta
5a6c1e9407
Add v1.farmos.app to default allowed origins.
2021-05-03 10:03:45 -04:00
Michael Stenta
7906c687c8
Move default allowed origin hostnames to a constant.
2021-05-03 10:02:31 -04:00
Symbioquine
03ac1edc5e
Fix issue with broken links in asset map popup
...
**Why?** When assets don't have a URL alias and have an id
greater than 1000, the link to those assets was getting rendered
with a comma in the map popup, which breaks the link - often leading
to the wrong asset like `/farm/asset/1` instead of `/farm/asset/1234`.
2021-01-31 07:06:42 -05:00
Michael Stenta
f93d4bef58
Use l() to create "Hierachy (change)" link in Species/breeds View. See #404
2021-01-27 08:14:00 -05:00
Michael Stenta
90be35202a
Fix translatable "Hierarchy (change)" text and link in Crops/varieties View. See #404
2021-01-27 08:12:17 -05:00
Michael Stenta
d0f21146c2
Remove .zip .tar .gz from allowed file extensions.
2021-01-20 12:46:50 -05:00
Michael Stenta
e7fb82709b
Add Materials field and filter to View of Input logs.
2020-12-30 05:56:26 -05:00
Paul Weidner
fcdefd7f71
Update link to api keys documentation.
2020-12-06 05:30:13 -05:00
Michael Stenta
bd429d45dd
Whitespace, coding standards/conventions, etc.
2020-11-26 06:23:54 -05:00
Michael Stenta
5a0833aca7
Do not include markup or whitespace in translatable strings.
2020-11-26 06:23:54 -05:00
Michael Stenta
e007fecc61
If only a single log was returned, wrap it in an array.
2020-11-26 06:23:54 -05:00
Michael Stenta
6631de0530
Remove $single= parameter name from function call.
2020-11-26 06:23:54 -05:00
Michael Stenta
06735fc3ce
Improve "Daily liveweight gain" translation. Separate markup from string. Close P tag.
2020-11-26 06:23:54 -05:00
Michael Stenta
00695591d8
Do not sanitize log paths generated by url().
2020-11-26 06:23:54 -05:00
paul121
2b8bdb8bd0
Whitespace and comments.
2020-11-26 06:23:54 -05:00
paul121
649d3bd847
Format animal name with htmlspecialchars(entity_label()).
2020-11-26 06:23:54 -05:00
paul121
fa371df938
Include average text where originally intended.
2020-11-26 06:23:54 -05:00
paul121
c2169a9678
Initialize log_weights array before checking logs.
2020-11-26 06:23:54 -05:00
paul121
c1e38ab4c8
Return dlwg markup text with farm_livestock_weight_dlwg.
2020-11-26 06:23:54 -05:00
paul121
4015d6c4ee
Return logs with farm_livestock_weight_all and farm_livestock_weight_dlwg.
2020-11-26 06:23:54 -05:00
Skipper
47cbbde867
Added daily liveweight gain
...
Added function to calculate daily liveweight gain, and to get all weight records.
Added translation
Added farm_livestock_weight_all() function
2020-11-26 06:23:54 -05:00
paul121
e19abae842
Add farm_livestock_asset_inventory function to help calculate animal inventories over time.
2020-11-22 12:35:03 -08:00
paul121
50494b16da
Only save logs that have duplicate areas.
2020-11-11 07:53:58 -05:00
paul121
25ecd4faf1
Get the assets current location relative to the movement time.
2020-11-11 07:53:58 -05:00
paul121
241781b13a
Fix existing post-grazing observation logs that have duplicate area references.
2020-11-11 07:53:58 -05:00
paul121
3a2c2f9043
Only reference unique areas in post-grazing observation logs.
2020-11-11 07:53:58 -05:00
Michael Stenta
f83e56cc44
Reset the static scale variable with drupal_static_reset() so that successive calls to farm_map_set_bcscale() work.
2020-11-11 07:51:55 -05:00
Michael Stenta
54cfbf5296
Use drupal_static() instead of static variables in farm_map_set_bcscale().
2020-11-11 07:51:55 -05:00
Michael Stenta
af0b25147e
Decrement $depth every time farm_map_reset_bcscale() is run.
2020-11-11 07:51:51 -05:00
Michael Stenta
8fc2a36b4e
Ensure that farm_map_set_bcscale() will always be followed by farm_map_reset_bcscale() (without a returning prematurely).
2020-11-10 20:56:21 -05:00
Michael Stenta
d6ed1f0e3e
Revert "Unset the static $scale variable so a new scale can later be set."
...
This reverts commit 7aa49b68a4
.
See https://github.com/farmOS/farmOS/issues/367
2020-11-10 11:44:22 -05:00
Michael Stenta
f9dea9a248
Expand bcscale() comment in farm_map_set_bcscale().
2020-10-30 19:10:42 -04:00
paul121
7aa49b68a4
Unset the static $scale variable so a new scale can later be set.
2020-10-30 18:51:14 -04:00
paul121
87fa04da99
Use db_like to escape quantity labels that might include spaces.
2020-10-29 13:38:46 -07:00
paul121
a38c1133df
Add farm_crop_family_crops function to help load Farm Crop terms
...
associated with specific crop families.
2020-09-29 20:26:46 -04:00
paul121
7cfb2ae78c
Add farm_crop_families function to help load Crop Family terms.
2020-09-29 20:26:46 -04:00
paul121
4840b0a088
Issue #3172818 : Alias oauth2/* endpoints to oauth/*.
2020-09-29 20:23:47 -04:00
pcambra
82874abdee
Issue #3167408 by pcambra: field_attach_validate not called for some farmOS entities
2020-09-16 07:54:50 -04:00
pcambra
e093c5863b
Issue #3169481 by pcambra: Allow to disable views on the asset pages
2020-09-16 07:45:09 -04:00
Michael Stenta
e81c62716e
Fix Notice: Trying to access array offset on value of type null in farm_api_restws_request_alter()
2020-09-16 07:27:40 -04:00
Michael Stenta
7cb84aba77
Fix Notice: Undefined index: end_time in farm_plan_consideration_form_submit() #349
2020-09-15 09:14:12 -04:00
Michael Stenta
da504a1be7
Issue #3169515 : Warning: Declaration of entityValidate($entity) should be compatible with FeedsProcessor::entityValidate($entity, ?FeedsSource $source = NULL)
2020-09-07 10:35:34 -04:00
pcambra
722a4188e2
Issue #3167756 by pcambra: Don't require farm_fields_autocomplete from farm_fields module
2020-08-28 08:54:56 -04:00
Michael Stenta
ac67a1f239
Add a count to sensor summary info.
2020-08-27 08:01:43 -04:00
Michael Stenta
f0bc6a8e6f
Limit the maximum number of data points to 100k via API.
2020-08-27 08:01:43 -04:00
Michael Stenta
d6e7a3deb4
Use isset() for all param and arg checks.
2020-08-27 08:01:43 -04:00
paul121
fcf006adf2
Use is_null to check if a limit query parameter is set.
2020-08-27 08:01:43 -04:00