Problem/Motivation

I have a field that must contain a number that is 16-18 numeric digits in length. The standard Int cannot be used as it is limited to ~10digits. Using the module 'big Integer' ( https://www.drupal.org/project/bigint ) gives me a clean way to overcome this limitation. However, I cannot use your formatter which works perfectly for my needs on this custom field type.

As a temporary workaround, I'm duplicating the field by copying the numeric string into a textfield and then applying the formatting. However this is causing trouble as numeric fields sort differently then text and causing me tons of angst!

Steps to reproduce

Install module 'BigInt'. Install Barcodes module. Create a field of Number(bigint). The option to use barcodes formatter in the field display (or in views) is unavailable.

Proposed resolution

Modify the module to add field type of 'Number(bigint)' as a supported type.

If it is a concern to allow this, can you please describe where I can 'patch' this module to allow me to add field type of Number('bigint') myself?

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork barcodes-3183824

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jshimota01 created an issue. See original summary.

jshimota01’s picture

FileSize
423 bytes

By reading the drupal documentation on formatters I learned a smidgen and was able to hand add the 'bigint' field type. It is working fine but I don't trust myself that it's done to correct standards.
However, in order to share my tiny effort (okay, for me it was a big effort), I'm providing my patch file in case someone else may need it.

jshimota01’s picture

Priority: Major » Minor
Status: Active » Needs review

sanduhrs made their first commit to this issue’s fork.

  • sanduhrs committed 839c33f on 2.0.x
    Issue #3183824 by jshimota01, sanduhrs: Support field type BigInt
sanduhrs’s picture

Version: 2.0.2 » 2.0.x-dev
Status: Needs review » Fixed

Cool, thank you! This is going to be in the next release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.