Support from Acquia helps fund testing for Drupal Acquia logo

Comments

StefanPr created an issue. See original summary.

StefanPr’s picture

I've added a widget that shows a disabled text_field with the value.

When creating a new entity the probable value is shown in the field.
The value shown might be wrong because another entity might have been created in the meanwhile, added to the #description.
The 'next value' is retrieved querying the information_schema.
Database connection is injected

I've adjusted some comments to be more reasoning.

I'm not an expert on the testing part, but I've tried to do atleast as much testing as there was for the default widget. I've also replaced the deprecated functions from the test class.

StefanPr’s picture

Assigned: StefanPr » Unassigned
Status: Needs work » Needs review
StefanPr’s picture

FileSize
10.37 KB
ralphvdhoudt’s picture

FileSize
8 KB

Recreated patch against latest dev

ralphvdhoudt’s picture

FileSize
8 KB

Better patch name

ralphvdhoudt’s picture

Rerolled the patch against 2.0.0

ralphvdhoudt’s picture

Fix for D10

ralphvdhoudt’s picture

FileSize
7.62 KB

D10 Fix (correct patch)

ralphvdhoudt’s picture

FileSize
7.61 KB

D10 Fix (correct patch part 2)

JohanKleene’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
FileSize
11.32 KB

Updated patch for the 2.0.x version.