Closed (fixed)
Project:
Entity Share
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2019 at 03:42 UTC
Updated:
28 Jan 2020 at 15:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
grimreaperComment #3
grimreaperHi quicksketch!
Happy new year!
Here is a patch that pre-select the remote and channel and disable the select list if only one choice is available.
The automated tests are currently failing on drupal.org. There is a dedicated issue for that #3101334: Fix automated tests, so please ignore this failure.
Waiting your feedbacks before merging.
Regards,
Comment #4
quicksketchHi @Grimreaper! I ran into a problem with this patch in that
array_key_first()is PHP 7.3+. Apparently we're using 7.2 currently. Considering the array of $channel_options is only going to have one value, we could usekey()and still get the same result 100% of the time.So instead of
Use
Comment #5
quicksketchHere's a patch that works the same but makes that one line difference for lower versions of PHP.
Comment #6
grimreaperHi @quicksketch,
Thanks for the test and the feedback. Here is my review:
I will change into key() too here.
I will make the change and commit.
Comment #8
grimreaperThis is merged now!