Fixing id detection for snippets in database importer markdeep page.
This commit is contained in:
parent
70a027ac1b
commit
dd63f2f23e
@ -23,7 +23,12 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree [
|
|||||||
createEmail: (LeEmail new email:(remoteMetadata at: 'creator'));
|
createEmail: (LeEmail new email:(remoteMetadata at: 'creator'));
|
||||||
editEmail: (LeEmail new email:(remoteMetadata at: 'modifier')).
|
editEmail: (LeEmail new email:(remoteMetadata at: 'modifier')).
|
||||||
snippets do: [ :snippet | page addSnippet: snippet ].
|
snippets do: [ :snippet | page addSnippet: snippet ].
|
||||||
page children collect: [ :snippet | snippet database: self. self registerSnippet: snippet ].
|
page children collect: [ :snippet |
|
||||||
|
(self hasBlockUID: (snippet uid))
|
||||||
|
ifTrue: [ ^ snippet page ]
|
||||||
|
ifFalse: [
|
||||||
|
snippet database: self.
|
||||||
|
self registerSnippet: snippet ] ].
|
||||||
self addPage: page.
|
self addPage: page.
|
||||||
^ page
|
^ page
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user