Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions httpsdocs/classes/CB/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public function getObjectsForField($p)
if (!empty($fieldConfig['source']['fn'])) {
$method = explode('.', $fieldConfig['source']['fn']);
$class = new $method[0]();
$rez = $class->$method[1]($p);
$rez = $class->{$method[1]}($p);

// if custom source returned any result then return it right there
// otherwise custom source can add some filtering params and we go further processing
Expand Down Expand Up @@ -610,7 +610,7 @@ public function getObjectsForField($p)

$search = new Search();


if (!isset($p['skipSecurity'])) {
// temporary: Don't use permissions for Objects fields
// it can be later reinforced per field in config
Expand Down
13 changes: 12 additions & 1 deletion httpsdocs/js/widget/block/Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,22 @@ Ext.define('CB.widget.block.Chart', {
type: 'vbox'
,pack: 'top'
}

,listeners: {
scope: this
,afterrender: this.onAfterRender
}
,dockedItems: [{
xtype: 'toolbar',
items: [{
xtype: 'button',
text: 'Download Chart as PNG Image',
handler: function(btn, e, eOpts) {
btn.up('CBWidgetBlockChart').down("chart").save({
type: "image/png"
})
}
}]
}]
});

this.callParent(arguments);
Expand Down
Empty file modified logs/.gitignore
100644 → 100755
Empty file.