Fixed problem with the Scratchpad not seeing the metadata.
This commit is contained in:
parent
59dc0dbd99
commit
30adbc2793
1 changed files with 15 additions and 10 deletions
|
@ -393,6 +393,10 @@ class StoredFile {
|
||||||
$this->md = $this->loadMetadata();
|
$this->md = $this->loadMetadata();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GUNID needs to be set before you call this function.
|
||||||
|
*
|
||||||
|
*/
|
||||||
public function loadMetadata()
|
public function loadMetadata()
|
||||||
{
|
{
|
||||||
global $CC_CONFIG, $CC_DBC;
|
global $CC_CONFIG, $CC_DBC;
|
||||||
|
@ -630,6 +634,7 @@ class StoredFile {
|
||||||
} else { // fallback
|
} else { // fallback
|
||||||
$storedFile = new StoredFile($gunid);
|
$storedFile = new StoredFile($gunid);
|
||||||
}
|
}
|
||||||
|
$storedFile->loadMetadata();
|
||||||
$storedFile->gunidBigint = $row['gunid_bigint'];
|
$storedFile->gunidBigint = $row['gunid_bigint'];
|
||||||
//$storedFile->md->gunidBigint = $row['gunid_bigint'];
|
//$storedFile->md->gunidBigint = $row['gunid_bigint'];
|
||||||
$storedFile->md["gunid"] = $row['gunid_bigint'];
|
$storedFile->md["gunid"] = $row['gunid_bigint'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue