On a clean 4.7.2 install with quotes 4.7, mass importing tab-separated quotations returns:
* This content has been modified by another user, changes cannot be saved.
* Only the first 1 quotes were imported.
as the error says, it does add 1 node.
Comments
Comment #1
csc4 commentedI've got the same problem - it started with an error about priority in the gsitemap module but having set that I'm getting the same problem with quotes and can't get bulk import to work. Does anyone have a fix or a workaround?
Comment #2
proguru2 commentedI had the same problem. I fixed it by adding the following to quotes.module at line 248 (in the quotes_submit function, right under "$temp->quotes_importing = TRUE;"):
$temp->nid = NULL;
What is happening, is that when you mass import, seperate nodes are being created for each quote, but because the node id's are not being reset, the node_validate function (immediately called after) thinks you are editing a single node. Because the first quote sets the "updated" timestamp in the database, node_validate thinks that when you are submitting the 2nd node you are modifying the first and that it was changed inbetween the time you started modifying it and you submitted it. Thus in any case, only the first node will be submitted.
My "patch" simple resets the node id, so that node_validate will not think we are editing and updated node.
Hope it helps!
Comment #3
csc4 commentedThank you very much - that seems to have got it.
Comment #4
jhriggs commentedIs this still a problem in later versions? Closing for now.