signalpoint / DrupalGap

An application development kit for Drupal websites.
https://www.drupalgap.org
GNU General Public License v2.0
232 stars 185 forks source link

Fix placeholder access arguments that do not map to objects #1008

Open jacobembree opened 6 years ago

jacobembree commented 6 years ago

When a placeholder access argument maps to a loaded object the list of access arguments at position index gets replaced with the loaded object. However, when there's no entity and a specific path component is chosen by number in access_arguments, the number indicating the path component is ignored, only the the index of the number in the list of access arguments is used.

This pull request fixes that by calling arg() with the number specified rather than position of the number.