Commit 9477d0bb60538cb48abf0f9a9464be80dc85516a
1 parent
8f408d65
Conform to style, and use KTUtil::getId to get the ID from $oDocument.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3930 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
lib/documentmanagement/DocumentFieldLink.inc
| ... | ... | @@ -160,8 +160,9 @@ class DocumentFieldLink extends KTEntity { |
| 160 | 160 | |
| 161 | 161 | |
| 162 | 162 | function &getByDocument($oDocument) { |
| 163 | + $iDocumentId = KTUtil::getId($oDocument); | |
| 163 | 164 | return KTEntityUtil::getByDict('DocumentFieldLink', array( |
| 164 | - 'document_id' => $oDocument->getId(), | |
| 165 | + 'document_id' => $iDocumentId, | |
| 165 | 166 | ), array('multi' => true)); |
| 166 | 167 | } |
| 167 | 168 | ... | ... |