Commit fb48718c authored by Claes Sjofors's avatar Claes Sjofors

wb build, bugfix for webhandler object in LibHier

parent b8f5883e
......@@ -1243,6 +1243,8 @@ void wb_build::webhandler( pwr_tOid oid)
pwr_tStatus fsts;
pwr_tStatus sts;
char line[200];
int check_hierarchy = cdh_ObjidIsNotNull( m_hierarchy);
int hierarchy_found = 0;
wb_object o = m_session.object(oid);
......@@ -1251,6 +1253,21 @@ void wb_build::webhandler( pwr_tOid oid)
return;
}
// Check that no ancestor is a LibHier
for ( wb_object p = o.parent(); p.oddSts(); p = p.parent()) {
if ( p.cid() == pwr_eClass_LibHier) {
m_sts = PWRB__INLIBHIER;
return;
}
if ( check_hierarchy && cdh_ObjidIsEqual( m_hierarchy, p.oid()))
hierarchy_found = 1;
}
if ( check_hierarchy && !hierarchy_found) {
m_sts = PWRB__NOBUILT;
return;
}
modtime = o.modTime();
wb_attribute a = m_session.attribute( oid, "RtBody", "FileName");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment