mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Null-value protection for GUID and account values.
This commit is contained in:
parent
53fac914c0
commit
c06924622c
@ -79,10 +79,12 @@
|
||||
(list)))
|
||||
|
||||
(define (gnc:register-guid type guid)
|
||||
(gnc-build-url URL-TYPE-REGISTER (string-append type guid) ""))
|
||||
(and guid (gnc-build-url URL-TYPE-REGISTER (string-append type guid) "")))
|
||||
|
||||
(define (gnc:account-anchor-text acct)
|
||||
(gnc:register-guid "acct-guid=" (gncAccountGetGUID acct)))
|
||||
(if acct
|
||||
(gnc:register-guid "acct-guid=" (gncAccountGetGUID acct))
|
||||
(format #t "No Account!")))
|
||||
|
||||
(define (gnc:split-anchor-text split)
|
||||
(gnc:register-guid "split-guid=" (gncSplitGetGUID split)))
|
||||
|
Loading…
Reference in New Issue
Block a user