Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2024-03-10 14:40:41 +00:00
commit a53a8cca74
2 changed files with 6 additions and 5 deletions

View file

@ -160,18 +160,21 @@ class DefaultLabel extends RectangleSheet
$textY += $this->textSize + self::TEXT_MARGIN; $textY += $this->textSize + self::TEXT_MARGIN;
} }
// Fields // Render the selected fields with their labels
$fieldsDone = 0; $fieldsDone = 0;
if ($fieldsDone < $this->getSupportFields()) { if ($fieldsDone < $this->getSupportFields()) {
// dd($record->get('fields'));
foreach ($record->get('fields') as $field) { foreach ($record->get('fields') as $field) {
// Actually write the selected fields and their matching values
static::writeText( static::writeText(
$pdf, $field['label'][0]. ': ' . $field['value'], $pdf, (($field['label']) ? $field['label'].' ' : '') . $field['value'],
$textX1, $textY, $textX1, $textY,
'freesans', '', $this->textSize, 'L', 'freesans', '', $this->textSize, 'L',
$textW, $this->textSize, $textW, $this->textSize,
true, 0 true, 0
); );
$textY += $this->textSize + self::TEXT_MARGIN; $textY += $this->textSize + self::TEXT_MARGIN;
$fieldsDone++; $fieldsDone++;
} }

View file

@ -411,13 +411,11 @@
// add some stuff to get the value of the select2 option here? // add some stuff to get the value of the select2 option here?
if ((row.available_actions) && (row.available_actions.bulk_selectable) && (row.available_actions.bulk_selectable.delete !== true)) { if ((row.available_actions) && (row.available_actions.bulk_selectable) && (row.available_actions.bulk_selectable.delete !== true)) {
console.log('value for ID ' + row.id + ' is NOT true:' + row.available_actions.bulk_selectable.delete);
return { return {
disabled:true, disabled:true,
//checked: false, <-- not sure this will work the way we want? //checked: false, <-- not sure this will work the way we want?
} }
} }
console.log('value for ID ' + row.id + ' IS true:' + row.available_actions.bulk_selectable.delete);
} }