Problem/Motivation

Copying previous day values into a field with an additional time slot disallows the possibility to remove values.

Steps to reproduce

1. Click on the 'Add time slot' option.
2. Choose the 'Copy previous day'.

The 'Remove' link is now hidden from the display.

Proposed resolution

Update part of the JS that adds display: none parameter to the link.

User interface changes

The 'Remove' link will be available on the form after copying the previous day's values to the field with an additional time slot.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paulrad created an issue. See original summary.

paulrad’s picture

Assigned: paulrad » Unassigned
Status: Active » Needs review

Prepared merge request that resolves the issue.

johnv’s picture

Status: Needs review » Needs work

Hmm,
I do not see a difference.
In my installation, the Remove link is never hidden.
Did your installation have #3367013: Allow to remove values that weren't submitted installed already?

johnv’s picture

Title: Copying previous day values into field with additional time slot disallows possibility to remove values » Remove link is hidden after copying previous day with additional time slot
johnv’s picture

Status: Needs work » Needs review
FileSize
994 bytes

My comment #4 is not correct. I do see the problem.
But the proposed solution breaks the behaviour of the 'add time slot' link, when more slots are possible, then entered.
The attached patch fixes the problem on the calling level.

  • johnv committed e06df8ca on 8.x-1.x
    Issue #3377718 by paulrad: Remove link is hidden after copying previous...
johnv’s picture

Version: 8.x-1.x-dev » 8.x-1.11
Category: Feature request » Bug report
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.