Skip to content

Commit 2a17869

Browse files
committed
VS: ----------------------------------------------------------------------
fix(api-browser): protect against invalid/outdated input
1 parent e389b95 commit 2a17869

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -660,10 +660,14 @@ ad_proc -public api_proc_documentation {
660660
} else {
661661
set pretty_proc_name [subst {<i>&lt;instance of [::xo::api object_link $scope $cl]&gt;</i> $method}]
662662
}
663-
#
664-
# Make sure we have the newest update in the nsv
665-
#
666-
::xo::api update_object_doc $scope [expr {[string match ::* $cl] ? $cl :"::$cl"}] ""
663+
set cl [expr {[string match ::* $cl] ? $cl :"::$cl"}]
664+
665+
if {[::xo::api scope_eval $scope ::nsf::is object $cl]} {
666+
#
667+
# Make sure we have the newest update in the nsv
668+
#
669+
::xo::api update_object_doc $scope $cl ""
670+
}
667671
} else {
668672
set xotclArgs 0
669673
if {[namespace which ::xo::api] ne "" && [::xo::api isobject "" [lindex $proc_name 1]]} {

0 commit comments

Comments
 (0)