Closed (fixed)
Project:
Serial Field
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2016 at 05:41 UTC
Updated:
15 Feb 2019 at 21:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
finn lewis@ExTexan, I'm seeing the same. Did you get anywhere?
Comment #3
extexan commentedNo fix for it as far as I know. I just have to create the appropriate table(s) manually via our MySQL client whenever we create a new Serial field. Fortunately, at this point in our dev cycle, most all the Serial fields have already been created.
Comment #4
mortona2k commentedIn my site the tables did get created on config import, however the existing content didn't get a value generated.
Comment #5
mortona2k commentedLine 31 and 32 in serial.module:
If the field is created via config sync, it will not run the code here that sets up values for existing fields. I think this check should be removed.
Comment #6
mortona2k commentedI don't mean to hijack the thread, I think we're seeing different issues although I am not affected by this specific one.
Comment #7
mortona2k commentedHave you checked if the module was included in your exported config? The tables are created in serial.install when the module is enabled.
Comment #8
extexan commented@mortona2k, I'm not sure what you mean by this...
Yes, the module was included in the exported config, months ago, and is installed/enabled in the Dev site (where we do the config sync after changing settings locally).
Your comment is confusing in that when the module is installed (and the serial.install runs) there can't be any serial fields yet in the site, so the installation process couldn't create those tables.
The situation I'm talking about is when we create a new serial field days/weeks/months after the module has been installed, then export the config, import it into our Dev site and do a config sync, the tables normally created by the serial field module are not created on Dev, as they were on my local site.
Comment #9
StefanPr commentedComment #10
StefanPr commentedHad to change 2 things in order to make it work.
serial_field_config_create didn't run for config Syncs, which prevented the serial_xxx table from being created.
The old entities wouldn't always populate because the query was running access checks and access checks should be ignored in this part.
Comment #11
StefanPr commentedComment #12
anas_maw commentedI can confirm patch #10 work.
Comment #13
lisastreeter commentedPatch #10 is working for me. Thanks!
Comment #14
sandeepguntaka commented#10 works perfectly for me as well.
Comment #15
anas_maw commentedComment #17
colorfieldThanks @all for the patch and the review! Pushed into dev