Warning: session_start(): open(/var/lib/php/sessions/sess_glpi83777d0c437jjfmceeu4oc, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// assumes main concepts are empty before
// only works when you call db() afterwards
svoid quickImportMainConcepts(virtual Concepts oldConcepts) {
if (!shortNameIs(oldConcepts, "Concepts")) ret;
Concepts concepts = db_mainConcepts();
concepts.miscMapPut("dbGrabber", func -> Bool {
concepts.miscMapRemove("dbGrabber");
pcall {
concepts.idCounter = getLong idCounter(oldConcepts);
printVars_str(idCounter := concepts.idCounter);
Map oldMap = cast _get concepts(oldConcepts);
printVars_str(+oldMap);
concepts.concepts.putAll((Map) quickImport_unlisted(oldMap));
// Note: this calls _doneLoading2() on all concepts
concepts.assignConceptsToUs();
print(nConcepts(countConcepts()) + " quick-imported");
true;
}
false;
});
}