Commit Graph

7293 Commits

Author SHA1 Message Date
Farmer Ed ea43c5bf16
Merge branch 'farmOS:2.x' into 2.x 2022-08-04 09:25:09 +01:00
Michael Stenta 4040f17f6d farmOS 2.0.0-beta6 2022-07-30 11:21:34 -04:00
Michael Stenta 81d3f20aa4 Fix getInventory() $units data type in documentation (term ID, not string). 2022-07-30 11:15:56 -04:00
Michael Stenta bfbaabe726 Update Drupal core to 9.3.20. 2022-07-30 11:15:40 -04:00
Michael Stenta 83eb5df889 Update Drupal core to 9.3.19. 2022-07-20 14:54:03 -04:00
Michael Stenta b38fcc949e Update drupal/jsonapi_schema to 1.0-beta2. 2022-07-19 16:53:34 -04:00
Paul Weidner 76afd0f405 Add 2.0.0-beta5 release date to changelog. 2022-07-16 14:59:17 -04:00
Paul Weidner 7463f81f1d Implement BaseFormIdInterface and build a unique form ID from the id route parameter. 2022-06-27 11:33:25 -07:00
Pedro e434715e74 Don't lock ext-simplexml to PHP 7 #546
When installing from scratch, I am getting a PHP7 requirement:

```
 ddev composer create farmos/project --stability dev --no-interaction
Warning: MOST EXISTING CONTENT in the composer root (/Users/pcambra/webs/ecotrust/vanilla-farmos) will be deleted by the composer create-project operation. Only .ddev, .git and .tarballs will be preserved.
Would you like to continue? [Y/n] (yes):
Removing any existing files in composer root
Executing composer command: [composer create-project farmos/project --stability dev --no-interaction /tmp/GtolPx]

Creating a "farmos/project" project at "/tmp/GtolPx"
Installing farmos/project (2.x-dev 5214879c44c421e5160a0091412279ea6790f979)
  - Downloading farmos/project (2.x-dev 5214879)
  - Installing farmos/project (2.x-dev 5214879): Extracting archive
Created project in /tmp/GtolPx
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - farmos/farmos[2.0.0-beta1, ..., 2.0.0-beta5] require ext-simplexml ^7.4 -> it has the wrong version installed (8.0.16).
    - Root composer.json requires farmos/farmos ^2@beta -> satisfiable by farmos/farmos[2.0.0-beta1, ..., 2.0.0-beta5].

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.0/cli/php.ini
    - /etc/php/8.0/cli/conf.d/10-mysqlnd.ini
    - /etc/php/8.0/cli/conf.d/10-opcache.ini
    - /etc/php/8.0/cli/conf.d/10-pdo.ini
    - /etc/php/8.0/cli/conf.d/15-xml.ini
    - /etc/php/8.0/cli/conf.d/20-apcu.ini
    - /etc/php/8.0/cli/conf.d/20-assert.ini
    - /etc/php/8.0/cli/conf.d/20-bcmath.ini
    - /etc/php/8.0/cli/conf.d/20-bz2.ini
    - /etc/php/8.0/cli/conf.d/20-calendar.ini
    - /etc/php/8.0/cli/conf.d/20-ctype.ini
    - /etc/php/8.0/cli/conf.d/20-curl.ini
    - /etc/php/8.0/cli/conf.d/20-dom.ini
    - /etc/php/8.0/cli/conf.d/20-exif.ini
    - /etc/php/8.0/cli/conf.d/20-ffi.ini
    - /etc/php/8.0/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.0/cli/conf.d/20-ftp.ini
    - /etc/php/8.0/cli/conf.d/20-gd.ini
    - /etc/php/8.0/cli/conf.d/20-gettext.ini
    - /etc/php/8.0/cli/conf.d/20-iconv.ini
    - /etc/php/8.0/cli/conf.d/20-igbinary.ini
    - /etc/php/8.0/cli/conf.d/20-imagick.ini
    - /etc/php/8.0/cli/conf.d/20-intl.ini
    - /etc/php/8.0/cli/conf.d/20-ldap.ini
    - /etc/php/8.0/cli/conf.d/20-mbstring.ini
    - /etc/php/8.0/cli/conf.d/20-msgpack.ini
    - /etc/php/8.0/cli/conf.d/20-mysqli.ini
    - /etc/php/8.0/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/8.0/cli/conf.d/20-pdo_pgsql.ini
    - /etc/php/8.0/cli/conf.d/20-pdo_sqlite.ini
    - /etc/php/8.0/cli/conf.d/20-pgsql.ini
    - /etc/php/8.0/cli/conf.d/20-phar.ini
    - /etc/php/8.0/cli/conf.d/20-posix.ini
    - /etc/php/8.0/cli/conf.d/20-readline.ini
    - /etc/php/8.0/cli/conf.d/20-redis.ini
    - /etc/php/8.0/cli/conf.d/20-shmop.ini
    - /etc/php/8.0/cli/conf.d/20-simplexml.ini
    - /etc/php/8.0/cli/conf.d/20-soap.ini
    - /etc/php/8.0/cli/conf.d/20-sockets.ini
    - /etc/php/8.0/cli/conf.d/20-sqlite3.ini
    - /etc/php/8.0/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.0/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.0/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.0/cli/conf.d/20-tokenizer.ini
    - /etc/php/8.0/cli/conf.d/20-uploadprogress.ini
    - /etc/php/8.0/cli/conf.d/20-xmlreader.ini
    - /etc/php/8.0/cli/conf.d/20-xmlrpc.ini
    - /etc/php/8.0/cli/conf.d/20-xmlwriter.ini
    - /etc/php/8.0/cli/conf.d/20-xsl.ini
    - /etc/php/8.0/cli/conf.d/20-zip.ini
    - /etc/php/8.0/cli/conf.d/25-memcached.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-simplexml` to temporarily ignore these required extensions.
Failed to create project:exit status 2, stderr=
```

I think leaving the dependency as "*" would fix this.
2022-06-23 07:42:08 -04:00
Michael Stenta 28c32843c1 Issue #3290993 by paul121: Add "Move asset" button next to the current location field 2022-06-21 08:44:07 -04:00
Michael Stenta f6e12ecd22 Add CHANGELOG.md record for issue #3290993. 2022-06-21 08:43:42 -04:00
Paul Weidner ea92bd122d Render without location and move asset button by default. 2022-06-21 08:12:22 -04:00
Paul Weidner 99c3319cce If the asset is fixed don't render additional information. 2022-06-21 08:12:22 -04:00
Paul Weidner badaf9680c Use asset_current_location formatter for the asset location computed field. 2022-06-21 08:12:22 -04:00
Paul Weidner 874dfad08b Add asset_current_location field formatter. 2022-06-21 08:12:22 -04:00
Paul Weidner bab081692a Allow asset IDs to be passed as query params to asset move form. 2022-06-21 08:12:22 -04:00
Michael Stenta 62e54951f2 Issue #3290929: Provide a farmOS map form element 2022-06-19 17:47:51 -04:00
Michael Stenta c60b7d1597 Add a CHANGELOG.md entry for issue #3290929. 2022-06-19 10:29:43 -04:00
Michael Stenta 465bdf59ba Document how to use farmOS-map elements and behaviors in farmOS modules. 2022-06-19 10:29:43 -04:00
Michael Stenta e70b092c05 Return a string value from farm_map_input elements instead of an array. 2022-06-18 15:33:31 -04:00
Michael Stenta de94168269 Respect the #disabled form element by disabling edit control and textfield/hidden input. 2022-06-18 07:52:39 -04:00
Michael Stenta 8311576848 Do not show raw geometry field by default. 2022-06-18 07:52:39 -04:00
Michael Stenta a1a015cc58 Remove geofield_widget map type. 2022-06-18 07:52:39 -04:00
Michael Stenta a516fd4218 Default #map_type to "default" instead of "geofield_widget". 2022-06-18 07:52:39 -04:00
Michael Stenta e5f8594098 Add wkt and input behaviors to all farm_map_input elements by default. 2022-06-18 07:52:39 -04:00
Michael Stenta 388a0f43b1 Make the map input text field title invisible. 2022-06-18 07:52:39 -04:00
Michael Stenta b6744a3cd3 Set the map input text field title to that of the parent element + "WKT". 2022-06-18 07:52:39 -04:00
Michael Stenta 7923c06740 Do not wrap map input element in a fieldset by default. 2022-06-18 07:52:39 -04:00
Michael Stenta 4574cc5e9b Allow #behaviors to be added directly to farm_map and farm_map_input elements. 2022-06-18 07:52:39 -04:00
Michael Stenta ebeda67be4 Recursively merge provided map settings into defaults. 2022-06-18 07:52:39 -04:00
Michael Stenta 70e8b1f9ea Always default #map_settings to an empty array. 2022-06-18 07:52:39 -04:00
Michael Stenta ba6000ebc6 Add map element validation to check for valid geometry. 2022-06-18 07:52:39 -04:00
Michael Stenta a5d442ba63 Rename the geofield map behavior to input. 2022-06-18 07:52:39 -04:00
Michael Stenta 36cc27bbf1 Rename farm_map_wkt element to farm_map_input. 2022-06-18 07:52:39 -04:00
Michael Stenta 26c9746681 Add automated tests for map form element. 2022-06-18 07:52:39 -04:00
Michael Stenta 0516346d23 Fix Notice: Undefined index: #default_value 2022-06-18 07:52:38 -04:00
Paul Weidner 6e6c96eeef Update GeofieldWidget to use farm_map_wkt. 2022-06-18 07:52:38 -04:00
Paul Weidner 17dd03f23c Add farm_map_wkt form element. 2022-06-18 07:52:38 -04:00
Paul Weidner e6f1c85c8f Allow dealerdirect/phpcodesniffer-composer-installer composer plugin. 2022-06-14 13:27:26 -04:00
Paul Weidner 6d13a732d7
Return empty array if location field returns NULL. 2022-06-13 13:35:15 -07:00
Michael Stenta e3110c8cec Update Drupal core to 9.3.16 for SA-CORE-2022-011. 2022-06-11 08:34:26 -04:00
Michael Stenta a8b528cdd9 farmOS 2.0.0-beta5 2022-06-02 13:10:03 -04:00
Michael Stenta 97210231fa Update Drupal core to 9.3.15. 2022-06-02 12:19:12 -04:00
Michael Stenta 81da2ed9b3 Update Drupal core to 9.3.14 for SA-CORE-2022-010. 2022-05-26 08:15:30 -04:00
Michael Stenta 5ec4615adb Update Matrix.org chat badge link (app.element.io instead of riot.im). 2022-05-24 21:32:56 -04:00
Michael Stenta 8fa19a4b16 Fix whitespace on OpenCollective Backers badge. 2022-05-24 21:32:12 -04:00
Michael Stenta 7b13971422 Fix 1.x migration file copy example commands: include web/ subdirectory. 2022-05-20 14:24:04 -04:00
Michael Stenta d939eaa659 Update drupal/entity_reference_validators version constraint to ^1.0@beta. 2022-05-20 14:23:49 -04:00
Michael Stenta 76a6fdf563 Pin entity_reference_revisions to version 1.9 because we are patching it. 2022-05-13 14:56:53 -04:00
Farmer Ed 670f1f2886 Patch entity_reference_revisions module to fix upstream issue #3267304.
Infer target_revision_id to be Latest Revision when Only a target_id is Provided": "https://www.drupal.org/files/issues/2022-05-13/3267304-9.patch"
2022-05-13 14:23:58 -04:00