summaryrefslogtreecommitdiff
path: root/tex/context/base/publ-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/publ-ini.lua')
-rw-r--r--tex/context/base/publ-ini.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/tex/context/base/publ-ini.lua b/tex/context/base/publ-ini.lua
index 78c50677b..367a192f7 100644
--- a/tex/context/base/publ-ini.lua
+++ b/tex/context/base/publ-ini.lua
@@ -883,6 +883,15 @@ end
do
+ -- if there is no specification then we're in trouble but there is
+ -- always a default anyway
+ --
+ -- there's also always a fields table but it can be empty due to
+ -- lack of specifications
+ --
+ -- then there can be cases where we have no specification for instance
+ -- when we have a special kind of database
+
local function permitted(category,field)
local catspec = currentspecificationcategories[category]
if not catspec then
@@ -895,7 +904,8 @@ do
return false
end
local kind = fields[field]
- if ignoredfields and kind == "optional" and ignoredfields[field] then
+ -- if ignoredfields and kind == "optional" and ignoredfields[field] then
+ if ignoredfields and ignoredfields[field] then
return false
else
local sets = catspec.sets
@@ -1036,7 +1046,6 @@ do
local category = fields.category
local valid = permitted(category,field)
if valid then
--- print("!!!!!!",found(dataset,tag,field,valid,fields))
return found(dataset,tag,field,valid,fields)
end
end