Comments

StefanPr created an issue. See original summary.

StefanPr’s picture

StatusFileSize
new10.07 KB

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

StatusFileSize
new10.37 KB
ralphvdhoudt’s picture

StatusFileSize
new8 KB

Recreated patch against latest dev

ralphvdhoudt’s picture

StatusFileSize
new8 KB

Better patch name

ralphvdhoudt’s picture

StatusFileSize
new7.61 KB

Rerolled the patch against 2.0.0

ralphvdhoudt’s picture

StatusFileSize
new7.61 KB

Fix for D10

ralphvdhoudt’s picture

StatusFileSize
new7.62 KB

D10 Fix (correct patch)

ralphvdhoudt’s picture

StatusFileSize
new7.61 KB

D10 Fix (correct patch part 2)

johankleene’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
StatusFileSize
new11.32 KB

Updated patch for the 2.0.x version.