Ok, first your ideas:
– “after you changed the cache flag, did you check while logged out or in?” : Logged out, I usually try to work with Firefox in the backend, while opening the frontend in the damned IE. Even more, the Super Admin role has all the connectiosn permissions turned off, so he doesn’t see the unlisted ones.
– ” which version where you running that worked and which version did you update to where it stopped working?”: I am not sure that is the problem, it is the only thing that has changed that could access the connections tables in the DB, as the changes we have made are for the multilanguage support and how categories are shown. We went from cMap 2.0.10 in connections 0.7.3.1 to cMap 3.0.3 in connections 0.7.6.6 .
As for the bulk update: we are trying this in a local copy of the website, so we do not have the problems you foresaw. Another thing: we have returned to your code, just in case our changes are interfiring in some way that we cannot see.
As we have the 0.7.6.6 version, we changed the code to the following one (correct us if something is wrong):
function cnBulkUpdate() {
global $connections;
// X == the entry ID to update.
$results = $connections->retrieve->entries( array( 'id' => 44 ) );
foreach ( $results as $row ) {
$entry = new cnEntry();
$entry->set( $row->id );
$entry->update();
}
}
add_action( 'graphene_before_page_content', 'cnBulkUpdate' );
The graphene action is part of the graphene theme, and it is loaded just before the content (obviously, as the name says).
Result after the update:
– in the Frontend: no change, disgracefully. Date is shown, public phones and emails are not shown.
– in the Backend: the unlisted date is duplicated, but with Public visibility. So now the contact has tow dates, exactly the same except for the visibility. And the public visibility is wrong, obviously. Interestingly this problem does not happen in the unlisted phones or emails.
Now, if I click the Update button in the backend everything is solved (except that now the new public date – the wrong duplicated date – appears).
I am trying to see possible differences between the update method and the action of the button, and I do not see any… any ideas?
