mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	renamed inheritAttributes to template
This commit is contained in:
		
							parent
							
								
									4f1e6ec70f
								
							
						
					
					
						commit
						171877ce08
					
				@ -112,7 +112,7 @@ class Note extends Entity {
 | 
			
		||||
                     JOIN treeWithAttrs ON treeWithAttrs.noteId = attributes.noteId
 | 
			
		||||
                WHERE attributes.isDeleted = 0
 | 
			
		||||
                  AND attributes.type = 'relation'
 | 
			
		||||
                  AND attributes.name = 'inheritAttributes'
 | 
			
		||||
                  AND attributes.name = 'template'
 | 
			
		||||
                  AND (attributes.noteId = ? OR attributes.isInheritable = 1)
 | 
			
		||||
                )
 | 
			
		||||
            SELECT attributes.* FROM attributes JOIN treeWithAttrs ON attributes.noteId = treeWithAttrs.noteId
 | 
			
		||||
 | 
			
		||||
@ -25,7 +25,7 @@ const BUILTIN_ATTRIBUTES = [
 | 
			
		||||
    { type: 'relation', name: 'runOnChildNoteCreation' },
 | 
			
		||||
    { type: 'relation', name: 'runOnAttributeCreation' },
 | 
			
		||||
    { type: 'relation', name: 'runOnAttributeChange' },
 | 
			
		||||
    { type: 'relation', name: 'inheritAttributes' }
 | 
			
		||||
    { type: 'relation', name: 'template' }
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
async function getNotesWithLabel(name, value) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user